/*

Copyright 2009 Nicola Dal Pont

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/

package com.astoolkit.workflow
{
	import avmplus.getQualifiedClassName;
	
	import mx.logging.ILogger;
	import mx.logging.Log;
	import mx.rpc.Fault;
	
	[Bindable]
	public class DefaultWorkflowDelegate implements IWorkflowDelegate
	{
		protected static const LOGGER : ILogger =
			Log.getLogger( getQualifiedClassName( DefaultWorkflowDelegate ).replace(/:+/g, "." ) );
		
		public var onInitialize : Function = defaultHandler;
		
		public var onComplete : Function = defaultHandler;
		
		public var onPrepare : Function = defaultHandler;
		
		public var onBegin : Function = defaultHandler;
		
		public var onSuspend : Function = defaultHandler;
		
		public var onResume : Function = defaultHandler;
		
		public var onProgress : Function = defaultHandler;
		
		public var onFault : Function = defaultHandler;
		
		public var onWarning : Function = defaultHandler;
		
		public var onAbort : Function = defaultHandler;
		
		private function defaultHandler( ... rest ) : *
		{
			//LOGGER.warn( "DefaultWorkflowDelegate called an empty default handler" );
		}
	}
}